package org.xb.BuilderDemo;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author
 * @Description 具体的产品
 * @Date created in 15:01 2023/12/11
 */
public class Product {
    List<String> parts = new ArrayList<>();
    public void add(String part){
        parts.add(part);
    }
    public void show(){
        System.out.println("产品 === 构建");
        parts.forEach(x-> System.out.println(x));
    }
}
